package com.iims.oder.vo.resp;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * 产品清单
 *
 * @author fanpei
 * @date 2021/6/17 11:19
 */
@ApiModel("产品清单")
@Data
public class ProductInventoryVo {

    @ApiModelProperty(value = "产品Id")
    private Long productId;

    /**
     * 产品类型Id
     */
    @ApiModelProperty(value = "产品类型Id", required = true)
    private Integer prodTypeId;

    /**
     * 产品名称
     */
    @ApiModelProperty(value = "产品名称",required = true)
    @NotBlank(message = "产品名称不能为空")
    @Size(min = 0, max = 255, message = "产品名称长度不超过255字符")
    private String productName;

    /**
     * 产品型号
     */
    @ApiModelProperty(value = "产品型号",required = true)
    @NotBlank(message = "产品型号不能为空")
    @Size(min = 0, max = 100, message = "产品型号长度不超过100字符")
    private String productModel;

    /**
     * 产品频段
     */
    @ApiModelProperty(value = "产品频段")
    @NotBlank(message = "产品频段不能为空")
    @Size(min = 0, max = 255, message = "产品频段长度不超过50字符")
    private String productBand;

    /**
     * 单价
     */
    @ApiModelProperty(value = "单价/元")
    private BigDecimal price;

    /**
     * 单位
     */
    @ApiModelProperty(value = "单位")
    @Size(min = 0, max = 100, message = "单位长度不超过100字符")
    private String units;


    @ApiModelProperty(value = "数量")
    private int count;
}
